package com.adcc.loadsheet.billing.vo.chargerule;

import com.adcc.loadsheet.billing.entity.chargerule.BillingRuleEntity;

/**
 * 计费规则菜单tree
 * Created by zhaoml on 2020/4/7.
 */
public class BillingRuleTreeVO {
    //节点ID
    private String id;
    //父节点ID
    private String pId;
    //节点名称
    private String name;
    //节点是否打开
    private Boolean open;
    //节点是否选中
    private Boolean checked;
    //是否是父节点(默认传null即可)
    private Boolean isParent;
    //图标
    private String icon;

    public BillingRuleTreeVO(BillingRuleEntity billingRuleEntity, Boolean open , Boolean isParent){
        this.pId = "0";
        this.id = billingRuleEntity.getBillingRuleId().toString();
        this.isParent = isParent;
        this.name = billingRuleEntity.getRuleAbbrev();
        this.open = open;
//        this.icon = "/zTree/img/diy/10.png";
    }

    public BillingRuleTreeVO(String id,String pId,String name, Boolean open , Boolean isParent){
        this.id = id;
        this.pId = pId;
        this.name = name;
        this.open = open;
        this.isParent = isParent;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getpId() {
        return pId;
    }

    public void setpId(String pId) {
        this.pId = pId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Boolean getOpen() {
        return open;
    }

    public void setOpen(Boolean open) {
        this.open = open;
    }

    public Boolean getChecked() {
        return checked;
    }

    public void setChecked(Boolean checked) {
        this.checked = checked;
    }

    public Boolean getIsParent() {
        return isParent;
    }

    public void setIsParent(Boolean isParent) {
        this.isParent = isParent;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }
}